Skip to content

Adopt the WO19 G6 rulings: escapes decode, keyword table, fn directives - #140

Merged
ronaldtse merged 2 commits into
mainfrom
wo19-g6-ts
Nov 14, 2026
Merged

ronaldtse merged 2 commits into
mainfrom
wo19-g6-ts

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Summary

  • Item 4 — \U escapes decode: the string assembly decodes both \uXXXX and \UXXXX (the former hand-parser-parity deviation rendered gki-bel's sub "\U040E" "Ŭ" from-value as the literal text "U040E" and the row never fired; ruby/rs always decoded). Regression test parses the gki-bel shape and asserts the decoded Ў from.
  • Item 1 — keyword table: the synced grammar-source carries the six fn-literal names in the keyword rule (sha pin 1695964…, byte-identical to the ruby .parg).
  • Item 3 — the trio executes: reverse/strip/swapcase join the builtin function registry — stage directives and inline to-funcalls execute with ruby String#reverse/String#strip/String#swapcase semantics (strip uses ruby's ASCII whitespace + NUL set, not Unicode whitespace).
  • Item 2 — fn-in-from fails loud: a fn literal in FROM position raises MapLogicError at compile — the former alias-fallback degraded to the misleading "Alias downcase not found". any_character keeps its alias path (it is the primitive spelled as a function atom; the kp-kor golden rows exercise it in constraint positions).
  • Item 5 — when-position aligned: the outside-form block-rule extension (sub { from "a" to "x" } when kur) is retired — canonical rs binds the guard inside the braces, ruby parses the inside form only, corpus-proven dormant. The inside form is pinned; the outside form now rejects.

Gates

  • npx vitest run --no-file-parallelism: 394 passed, 0 failed, 4 skipped (incl. the golden additivity replay and the parity suite)
  • cross-grammar harness (maps parse-parity.mjs with this checkout): 412/435 structurally identical, the 3 known divergence kinds — zero delta vs baseline
  • New rows in the maps PR (gki-bel/mvd-bel/odni-bel "Ў" pins) verified against this runtime: Ŭ/W/W

Item 4: both \uXXXX and \UXXXX escape spellings decode in the string assembly (the former hand-parser-parity deviation carried gki-bel's sub "\U040E" "Ŭ" as the literal text "U040E" and the row never fired; ruby/rs always decoded).

Item 1: the grammar-source sync carries the six fn-literal keyword table (sha pin 169596431e066ec762b69ceb5a21383154e97ed7f3630888032e0b7122a1750e).

Item 3: reverse/strip/swapcase join the builtin function registry — they execute as stage directives and inline to-funcalls with the plain String semantics of ruby Stdlib::Functions.

Item 2: a fn literal in FROM position raises MapLogicError at compile (the former alias-fallback said "Alias downcase not found"); any_character keeps its alias path (it is the primitive spelled as a function atom).

Item 5: the outside-form block-rule when extension is retired — canonical rs binds the guard inside the braces and ruby parses the inside form only; the inside form is pinned and the outside form rejects.
@ronaldtse
ronaldtse merged commit b74cfda into main Nov 14, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant